
class MarketBatchSaleListOrderModel {
  bool? noPay;
  List<OrderDetails>? orderDetails;
  String? productType;

  MarketBatchSaleListOrderModel({this.noPay, this.orderDetails, this.productType});

  MarketBatchSaleListOrderModel.fromJson(Map<String, dynamic> json) {
    noPay = json["noPay"];
    orderDetails = json["orderDetails"] == null ? null : (json["orderDetails"] as List).map((e) => OrderDetails.fromJson(e)).toList();
    productType = json["productType"];
  }

  static List<MarketBatchSaleListOrderModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(MarketBatchSaleListOrderModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["noPay"] = noPay;
    if(orderDetails != null) {
      _data["orderDetails"] = orderDetails?.map((e) => e.toJson()).toList();
    }
    _data["productType"] = productType;
    return _data;
  }

  MarketBatchSaleListOrderModel copyWith({
    bool? noPay,
    List<OrderDetails>? orderDetails,
    String? productType,
  }) => MarketBatchSaleListOrderModel(
    noPay: noPay ?? this.noPay,
    orderDetails: orderDetails ?? this.orderDetails,
    productType: productType ?? this.productType,
  );
}

class OrderDetails {
  String? orderId;
  dynamic? orderPrice;

  OrderDetails({this.orderId, this.orderPrice});

  OrderDetails.fromJson(Map<String, dynamic> json) {
    orderId = json["orderId"];
    orderPrice = json["orderPrice"];
  }

  static List<OrderDetails> fromList(List<Map<String, dynamic>> list) {
    return list.map(OrderDetails.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["orderId"] = orderId;
    _data["orderPrice"] = orderPrice;
    return _data;
  }

  OrderDetails copyWith({
    String? orderId,
    int? orderPrice,
  }) => OrderDetails(
    orderId: orderId ?? this.orderId,
    orderPrice: orderPrice ?? this.orderPrice,
  );
}